Silk Mobile

Table of Contents (Homepage)

Creating Your First Test On iOS Device

Follow the steps below:

Step 1: To start recording a script on an iOS mobile device with the Native recorder, you need to:

  • Connect your mobile device via USB to your computer (for device connectivity instructions please follow Connect Device - Option B )

  • Have the application instrumented and installed on the device (see Native Application Instrumentation process for iOS).

Notes
  1. In this example we will use one of our demo instrumented applications for iOS called EriBank which can be downloaded from http://supportline.microfocus.com/

  2. We begin the example with the application launched on the device. you can launch the application using the 'Launch' command

  3. iOS9 - When the iOSBridge app or the Simple Browser are started for the first time on a iOS 9 device, the user is presented with a dialog about "Untrusted Developer". In order to be able to launch the iOSBridge or Simple Browser, the user needs to do the following:

    1. Go to the "Setting" application

    2. Select the "General" section

    3. Then select "Profile"

    4. Choose "Experitest Ltd" item and click "Trust".

images/download/attachments/2687793/1.jpg

Step 2: Start the recording session

  1. In Silk Mobile go to the "Test" tab and click on the "Record" button.
    images/download/attachments/2687793/2.jpg

  2. Choose the device you wish to record and choose the tested application name (for Native Recording).

Note: The recommended way of recording is ' Dynamic Recording ' which can be done by ticking the 'Use dynamic' button. we will use the ' Native Recording ' in order to cover object oriented features in the examples.

Step 3: Go to the device screen appearing on your computer screen (with the app launched on it), and do the exact sequence of actions you want in the test.

In this example, I want to run a test in the "eriBank" application that logs into my bank account, so I'll do the following sequence of actions:

    • Click on the "Username" field, enter 'company'

    • Click on "Password", enter 'company'

    • Click on the "Login" button

    • Right-click on the "Make Payment" button to verify that it is found.

Note: Things worthwhile doing when recording:

  1. Click the center of the image/icon/link

  2. Record slowly

  3. Event recording is possible thru the reflection window only.

images/download/attachments/2687793/8.jpg images/download/attachments/2687793/3.jpg images/download/attachments/2687793/9.jpg

Step 4: Return to Silk Mobile and click on the Stop Recording button.

images/download/attachments/2687793/4.jpg

Step 5: You will see a progress bar indicating that the recorded data is being analyzed, and the test script will then appear in the script area.

Note: The script you recorded can later on be edited. (please refer to the "Edit Test Commands" & "Edit Test Objects" section in the guide for instructions on how to edit).

images/download/attachments/2687793/5.jpg

Step 6: Click the " Play " button to run the script:

images/download/attachments/2687793/6.jpg

Step 7: Once the test has been executed, you will receive a report indicating whether each test step was executed successfully or not, including a screenshot of the tested application in run time.

images/download/attachments/2687793/7.jpg

Note:

You can run the test script from UFT as well.